﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyCore.Modules
{
    /// <summary>
    /// 模块基类
    /// </summary>
    public abstract class EasyModule
    {
        /// <summary>
        /// 服务容器
        /// </summary>
        public IServiceCollection Services { get; set; }
        public EasyModule(IServiceCollection services) {
            Services = services;
        }

        /// <summary>
        /// 配置模块服务
        /// </summary>
        public abstract void ConfigureServices();
    }
}
